package com.library.service.implementation.account;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.library.entities.Account;
import com.library.repository.account.AccountRepository;
import com.library.service.account.AccountService;

@Service("accountService")
public class AccountServiceImpl implements AccountService{

	@Autowired
    private AccountRepository accountRepository;
	
	@Override
	public Account findAccountByUsername(String username) {
		return accountRepository.findAccountByUsername(username);
	}

}
